package com.yidu.hbatsams.dao;

import com.yidu.hbatsams.domain.AtsEmpAthleteResults;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsEmpAthleteResultsMapper {
    /**
     * 逻辑删除
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer resultId);

    /**
     * 新增
     * @mbg.generated 2019-10-29
     */
    int insert(AtsEmpAthleteResults record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsEmpAthleteResults record);

    /**
     * 根据ID查询
     * @mbg.generated 2019-10-29
     */
    AtsEmpAthleteResults selectByPrimaryKey(Integer resultId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsEmpAthleteResults record);

    /**
     * 修改
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsEmpAthleteResults record);

    /**
     * 查询所有+模糊查询
     * @return
     */
    List<AtsEmpAthleteResults> selectAll(String matchName, String startTime, String endTime);

    /**
     * 查询行数
     * @return
     */
    Long count();

    /**
     *
     * @return
     */
    Long coutCoachResults(Integer coachId);
    /**
     * 根据教练查询比赛信息
     * @param matchName
     * @param coachId
     * @return
     */
    List<AtsEmpAthleteResults> selectAllCoach(String matchName, String startTime, String endTime,Integer coachId);
}